﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.ModelBinding;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Practices.Unity;
using PharmacyBussinesEntities;
using PharmacyService;

namespace PharmacyWeb.Almacen
{
    public partial class frmListProductoLote : System.Web.UI.Page
    {
        [Dependency]
        public ILoteService LoteService { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        public IEnumerable<Lote> GetLotes([Control("txtCriterio")] string criterio)
        {
            return LoteService.GetFromLotesByCriterio(criterio);
        }

    }
}